﻿<Application 
    x:Class="GuidGeneratorWPF.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification"
    xmlns:local="clr-namespace:GuidGeneratorWPF"
    Startup="Application_Startup" Exit="Application_Exit" DispatcherUnhandledException="Application_DispatcherUnhandledException">
    
    <Application.Resources>

        <tb:TaskbarIcon x:Key="taskbarIcon" IconSource="/Resources/Guid16.ico" ToolTipText="GUID Generator" Visibility="Visible" MenuActivation="RightClick">
            <tb:TaskbarIcon.DoubleClickCommand>
                <local:ShowOptionsWindowCommand />
            </tb:TaskbarIcon.DoubleClickCommand>
            <tb:TaskbarIcon.LeftClickCommand>
                <local:GenerateGuidCommand />
            </tb:TaskbarIcon.LeftClickCommand>
            <tb:TaskbarIcon.TrayToolTip>
                <local:HelpControl />
            </tb:TaskbarIcon.TrayToolTip>
            <!--<tb:TaskbarIcon.TrayPopup>
                <local:GuidGeneratorControl />
            </tb:TaskbarIcon.TrayPopup>-->
            <tb:TaskbarIcon.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Generate _GUID" Click="MenuItemGenerateGuid_Click" FontWeight="Bold" />
                    <MenuItem Header="Generate _Multiple GUIDs..." Click="MenuItemGenerateMultipleGuids_Click" />
                    <Separator />
                    <MenuItem Header="Options..." Click="MenuItemOptions_Click" />
                    <MenuItem Header="Help" Click="MenuItemHelp_Click" />
                    <Separator />
                    <MenuItem Header="E_xit" Click="MenuItemExit_Click" />
                </ContextMenu>
            </tb:TaskbarIcon.ContextMenu>
        </tb:TaskbarIcon>

    </Application.Resources>
    
</Application>
